package com.nis.bcreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 描述:
 * 创建: zhangyh
 * 时间: 2018/9/13
 */

public class MyReceiver extends BroadcastReceiver {
    public static String ReceiverKey="com.notification";
    ServicesOKListener mListener;

    public MyReceiver(ServicesOKListener mListener) {
        this.mListener = mListener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if (mListener!=null) {
            mListener.setOk();
        }
    }

    interface ServicesOKListener {
        void setOk();
    }
}
